//
//  OrderNameCell.m
//  Ufan
//
//  Created by yangqingluo on 15/12/7.
//  Copyright © 2015年 yangqingluo. All rights reserved.
//

#import "OrderNameCell.h"

@interface OrderNameCell()

@property (strong, nonatomic) UIView *bottomLineView1;
@property (strong, nonatomic) UIView *bottomLineView2;

@end

@implementation OrderNameCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.textLabel.font = [UIFont systemFontOfSize:16.0];
        self.textLabel.textColor = [UIColor blackColor];

        _bottomLineView1 = [[UIView alloc] init];
        _bottomLineView1.backgroundColor = [UIColor blackColor];
        [self.contentView addSubview:_bottomLineView1];
        
        _bottomLineView2 = [[UIView alloc] init];
        _bottomLineView2.backgroundColor = [UIColor blackColor];
        [self.contentView addSubview:_bottomLineView2];
        
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    
    self.textLabel.text = self.name;
    
    _bottomLineView1.frame = CGRectMake(15, self.height - 4, self.width - 30, 2);
    _bottomLineView2.frame = CGRectMake(15, self.height - 1, self.width - 30, 1);
}


+(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    return 60;
}

@end
